<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="div1">
    <p>中秋放假了真好啊！</p>
</div>
<div id="div2">
    <p>国庆也快放假了 好啊</p>
</div>

<script type="text/javascript">
    document.write('helloWorld')
    var div1 = document.getElementById("div1");

    console.log(div1.innerText='hahaha')
    var div2 = document.getElementById("div2");
    div2.innerHTML='<p style="color: brown">国庆了</p>'

</script>
</body>
</html>